package com.sikaryofficial.backend.domain.dto.req.material;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 素材库保存对象
 *
 * @author qinjinyuan
 * @date 2024-08-07
 */
@Getter
@Setter
@ToString
@ApiModel(value = "素材库保存对象", description = "素材库保存对象")
public class MaterialLibraryReq {
    /**
     * 素材ID
     */
    @ApiModelProperty(value = "素材ID")
    private Long materialId;

    /**
     * 素材类型,0-图片,1-视频
     */
    @ApiModelProperty(value = "素材类型,0-图片,1-视频")
    private Integer materialType;

    /**
     * 素材名称
     */
    @ApiModelProperty(value = "素材名称")
    private String title;

    /**
     * 描述
     */
    @ApiModelProperty(value = "素材描述")
    private String description;

    /**
     * 链接
     */
    @ApiModelProperty(value = "素材链接")
    private String link;

    /**
     * 媒体封面
     */
    @ApiModelProperty(value = "素材封面")
    private String coverImage;

    /**
     * 时长，单位秒
     */
    @ApiModelProperty(value = "素材时长，单位秒",example = "0.24")
    private BigDecimal duration;

    /**
     * 文件大小，单位M
     */
    @ApiModelProperty(value = "素材文件大小，单位M",example = "2.35")
    private BigDecimal fileSize;

}
